home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Business / Calendars / PM Calendar Scripts / 2 cal Mon-Normal < prev    next >
Text File  |  1992-02-18  |  11KB  |  532 lines

  1. —Normal year starting on Monday
  2. new 12
  3. toolbox off
  4. zeropointreset
  5.  
  6. ————————————————————————————————————————————————
  7. —define styles
  8. —define a style for the days of the month
  9. stylebegin “Days”
  10. font “Times”
  11. tabs 7,  (right, 0.3i, “ “) (right, 1.4i, “ “) (right, 2.6i, “ “) (right, 3.8i, “ “) (right, 5i, “ “) (right, 6.2i, “ “) (right, 7.4i, “ “)
  12. size 18
  13. paraspace 0i,  .7i
  14. leading 72
  15. spaceoptions true, 12, topofcaps 120
  16. paraoptions 1, 0, 0, 0, 0, 0, 0 
  17. styleend “Days”
  18.  
  19. —style for the Names of the months
  20. stylebegin “Months”
  21. font “Times”
  22. alignment center
  23. size 60
  24. typestyle bold
  25. leading auto
  26. paraspace 0i,  .55i
  27. spaceoptions true, 12, proportional, 120
  28. paraoptions 1, 0, 1, 0, 1, 0, 0 
  29. styleend “Months”
  30.  
  31. —style for the Week day names
  32. stylebegin “Days of week”
  33. font “Times”
  34. size 12
  35. typestyle bold
  36. typestyle reverse
  37. leading auto
  38. paraspace 0i,  0i
  39. spaceoptions true, 12, proportional, 120
  40. tabs 7,  (center, 0.5i, “ “) (center, 1.6i, “ “) (center, 2.8i, “ “) (center, 4i, “ “) (center, 5.2i, “ “) (center, 6.4i, “ “) (center, 7.6i, “ “)
  41. styleend “Days of week”
  42.  
  43. —style for the days of the previous/next month entries
  44. stylebegin “Small Days”
  45. font “Times”
  46. size 8
  47. leading auto
  48. paraspace 0i,  .45i
  49. spaceoptions true, 7, proportional, 120
  50. paraoptions 1, 0, 0, 0, 0, 0, 0 
  51. tabs 7,  (right, 0.2i, “ “) (right, .4i, “ “) (right, .6i, “ “) (right, .8i, “ “) (right, 1i, “ “) (right, 1.2i, “ “) (right, 1.4i, “ “)
  52. styleend “Small Days”
  53.  
  54. —style for the Names of the months for the previous/next month entries
  55. stylebegin “Small Months”
  56. font “Times”
  57. alignment center
  58. size 12
  59. leading auto
  60. paraspace 0i,  0.05i
  61. spaceoptions true, 12, proportional, 120
  62. paraoptions 1, 0, 0, 0, 1, 0, 0 
  63. styleend “Small Months”
  64.  
  65. —a working, temporary style used to create text in the calendar.  Removed upon completion
  66. stylebegin “temp”
  67. font “Times”
  68. size 4
  69. tabs 7,  (right, 0.125i, “ “) (right, 0.25i, “ “) (right, 0.375i, “ “) (right, 0.5i, “ “) (right, 0.625i, “ “) (right, 0.75i, “ “) (right, 0.875i, “ “)
  70. paraspace 0i,  0i
  71. paraoptions 0, 0, 0, 0, 0, 0, 0 
  72. styleend “temp”
  73.  
  74.  
  75. removestyle “Body text”
  76. removestyle “Caption”
  77. removestyle “Hanging indent”
  78. removestyle “Headline”
  79. removestyle “Subhead 1”
  80. removestyle “Subhead 2”
  81.  
  82. ————————————————————————————————————————————————
  83. —draw Days grid
  84. pageoptions 0 0    — single-sided pages
  85. pagesize 11i 8.5i
  86. pagemargins 2.3i 0.5i 0.5i 0.5i
  87.  
  88. —draw the 2 lines surrounding a ‘day’
  89. page rm
  90. line 9.5i 2i  10.5i 2i
  91. linestyle onepoint
  92. deselect
  93. line 10.5i 2i  10.5i 2.9i
  94. linestyle fourpoint
  95. selectall
  96. copy  
  97. multiplepaste 6 (-1.2i 0i)
  98. selectall
  99. copy
  100. multiplepaste 5 (0i  1i)
  101. deselect
  102.  
  103. —scratch pad lines
  104. line (0.5i  2i)  (2i  2i)
  105. linestyle onepoint
  106. copy
  107. multiplepaste 9  0i,  .3i
  108. deselect
  109.  
  110. —previous month master page items
  111. line (.5i  5.5i)  (2i  5.5i)
  112. linestyle onepoint
  113. deselect
  114. line (2i  5.5i) (2i  6.4i)
  115. linestyle fourpoint
  116.  
  117. —next month master page items
  118. selectextend 2i 5.5i
  119. copy
  120. multiplepaste 1  0i,  1.5i
  121.  
  122. —draw the Day of the Week box
  123. box (2.3i 1.735i) (10.55i 1.953i)
  124. fillstyle solid
  125. deselect
  126.  
  127. —type the Day of the Week names
  128. newstory  2.3i  1.835i
  129. style “Days of week”
  130. textenter “    Sunday    Monday    Tuesday    Wednesday    Thursday    Friday    Saturday”
  131. select 2.5i 1.835i
  132. move lefttop (2.3i 1.75i)
  133.  
  134. ——————————————————————————————————————————
  135. —Type the names of the months and days
  136. —each month must have 6 lines for correct spacing in the previous/next month sections
  137. page 1
  138. pagemargins 2.3i .5i 0.5i 0.3i
  139. newstory 2.3i .5i
  140. autoflow 1    — set autoflow on
  141.  
  142. style “temp”
  143. textenter “January
  144.         1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30    31
  145. February
  146.                     1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28
  147. March
  148.                     1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30    31
  149. April
  150.     1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30
  151. May
  152.             1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30    31
  153. June
  154.                         1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30
  155. July
  156.     1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30    31
  157. August
  158.                 1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30    31
  159. September
  160.                             1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30
  161. October
  162.         1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30    31
  163. November
  164.                     1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30
  165. December
  166.                             1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30    31
  167. ————————————————————————————————————————————————
  168. —style the text
  169. textcursor -para
  170. style “Days”
  171. textcursor -para
  172. style “Months”
  173. textcursor -para
  174. style “Days”
  175. textcursor -para
  176. style “Months”
  177. textcursor -para
  178. style “Days”
  179. textcursor -para
  180. style “Months”
  181. textcursor -para
  182. style “Days”
  183. textcursor -para
  184. style “Months”
  185. textcursor -para
  186. style “Days”
  187. textcursor -para
  188. style “Months”
  189. textcursor -para
  190. style “Days”
  191. textcursor -para
  192. style “Months”
  193. textcursor -para
  194. style “Days”
  195. textcursor -para
  196. style “Months”
  197. textcursor -para
  198. style “Days”
  199. textcursor -para
  200. style “Months”
  201. textcursor -para
  202. style “Days”
  203. textcursor -para
  204. style “Months”
  205. textcursor -para
  206. style “Days”
  207. textcursor -para
  208. style “Months”
  209. textcursor -para
  210. style “Days”
  211. textcursor -para
  212. style “Months”
  213. textcursor -para
  214. style “Days”
  215. textcursor -para
  216. style “Months”
  217.  
  218. ——————————————————————————————————————————————————
  219. —place the Months and their names
  220. select 3i 3i
  221. move lefttop (2.3i  .5i)
  222. placenext
  223. page 2
  224. place 2.3i  .5i
  225.  
  226. —===================================
  227. —create the previous/next month dates
  228. —copy the January of the following year (use May since they begin on the same day of the week) and paste it into a temporary location. 
  229.  
  230. page 5
  231. select 5i 5i
  232. copy
  233. page 1
  234. newstory -2i  1i
  235. paste
  236. select -2i  1i
  237. move lefttop -2i -5i    —correct placement so shades can be closed later
  238.  
  239. —copy and paste the remaining 12 months of the year
  240. select 5i 5i
  241. textedit
  242. selectall
  243. copy
  244. select -2i -5i
  245. textedit
  246. paste
  247.  
  248. —copy and paste December of the previous year (use June since they begin on the same day of the week)
  249. page 6
  250. select 5i 5i
  251. copy
  252. page 1
  253. select -2i -5i
  254. textedit
  255. paste
  256. selectall
  257. typestyle normal
  258. style “temp”    —temporary style so that all the text will fit into the pasteboard space available.
  259.  
  260. —======================================================
  261. —copy, cut and paste these months into the correct order so that the previous and next month can be displayed for each month.
  262.  
  263. textcursor -story
  264. textselect +para
  265. textenter “December
  266. “    —correct name of month (we pasted in March,  correct to December)
  267.  
  268. textcursor +para
  269. textcursor -char
  270. textenter “    31”    —add a 31st to this month (it is now December)
  271. textcursor +para
  272.  
  273. textselect +para
  274. textselect +para
  275. cut    — january
  276. textcursor +para
  277. textcursor +para
  278. paste
  279.  
  280. textcursor -para
  281. textcursor -para
  282. textselect -para
  283. textselect -para
  284. copy    —February
  285. textcursor +para
  286. textcursor +para
  287. textcursor +para
  288. textcursor +para
  289. paste
  290.  
  291. textcursor -para
  292. textcursor -para
  293. textselect -para
  294. textselect -para
  295. copy    —march
  296. textcursor +para
  297. textcursor +para
  298. textcursor +para
  299. textcursor +para
  300. paste
  301.  
  302. textcursor -para
  303. textcursor -para
  304. textselect -para
  305. textselect -para
  306. copy    —April
  307. textcursor +para
  308. textcursor +para
  309. textcursor +para
  310. textcursor +para
  311. paste
  312.  
  313. textcursor -para
  314. textcursor -para
  315. textselect -para
  316. textselect -para
  317. copy    —may
  318. textcursor +para
  319. textcursor +para
  320. textcursor +para
  321. textcursor +para
  322. paste
  323.  
  324. textcursor -para
  325. textcursor -para
  326. textselect -para
  327. textselect -para
  328. copy    —June
  329. textcursor +para
  330. textcursor +para
  331. textcursor +para
  332. textcursor +para
  333. paste
  334.  
  335. textcursor -para
  336. textcursor -para
  337. textselect -para
  338. textselect -para
  339. copy    —July
  340. textcursor +para
  341. textcursor +para
  342. textcursor +para
  343. textcursor +para
  344. paste
  345.  
  346. textcursor -para
  347. textcursor -para
  348. textselect -para
  349. textselect -para
  350. copy    —august
  351. textcursor +para
  352. textcursor +para
  353. textcursor +para
  354. textcursor +para
  355. paste
  356.  
  357. textcursor -para
  358. textcursor -para
  359. textselect -para
  360. textselect -para
  361. copy    —September
  362. textcursor +para
  363. textcursor +para
  364. textcursor +para
  365. textcursor +para
  366. paste
  367.  
  368. textcursor -para
  369. textcursor -para
  370. textselect -para
  371. textselect -para
  372. copy    —October
  373. textcursor +para
  374. textcursor +para
  375. textcursor +para
  376. textcursor +para
  377. paste
  378.  
  379. textcursor -para
  380. textcursor -para
  381. textselect -para
  382. textselect -para
  383. copy    —November
  384. textcursor +para
  385. textcursor +para
  386. textcursor +para
  387. textcursor +para
  388. paste
  389.  
  390. textselect +para
  391. textenter “January
  392. “    —correct name of month (we pasted in May,  correct to January)
  393.  
  394. ————————————————————————————————————————
  395. —apply the correct style for each paragraph
  396. style “Small Days”
  397. textcursor -para
  398. style “Small Months”
  399. textcursor -para
  400.  
  401. style “Small Days”
  402. textcursor -para
  403. style “Small Months”
  404. textcursor -para
  405.  
  406. style “Small Days”
  407. textcursor -para
  408. style “Small Months”
  409. textcursor -para
  410.  
  411. style “Small Days”
  412. textcursor -para
  413. style “Small Months”
  414. textcursor -para
  415.  
  416. style “Small Days”
  417. textcursor -para
  418. style “Small Months”
  419. textcursor -para
  420.  
  421. style “Small Days”
  422. textcursor -para
  423. style “Small Months”
  424. textcursor -para
  425.  
  426. style “Small Days”
  427. textcursor -para
  428. style “Small Months”
  429. textcursor -para
  430.  
  431. style “Small Days”
  432. textcursor -para
  433. style “Small Months”
  434. textcursor -para
  435.  
  436. style “Small Days”
  437. textcursor -para
  438. style “Small Months”
  439. textcursor -para
  440.  
  441. style “Small Days”
  442. textcursor -para
  443. style “Small Months”
  444. textcursor -para
  445.  
  446. style “Small Days”
  447. textcursor -para
  448. style “Small Months”
  449. textcursor -para
  450.  
  451. style “Small Days”
  452. textcursor -para
  453. style “Small Months”
  454. textcursor -para
  455.  
  456. style “Small Days”
  457. textcursor -para
  458. style “Small Months”
  459. textcursor -para
  460.  
  461. style “Small Days”
  462. textcursor -para
  463. style “Small Months”
  464. textcursor -para
  465.  
  466. style “Small Days”
  467. textcursor -para
  468. style “Small Months”
  469. textcursor -para
  470.  
  471. style “Small Days”
  472. textcursor -para
  473. style “Small Months”
  474. textcursor -para
  475.  
  476. style “Small Days”
  477. textcursor -para
  478. style “Small Months”
  479. textcursor -para
  480.  
  481. style “Small Days”
  482. textcursor -para
  483. style “Small Months”
  484. textcursor -para
  485.  
  486. style “Small Days”
  487. textcursor -para
  488. style “Small Months”
  489. textcursor -para
  490.  
  491. style “Small Days”
  492. textcursor -para
  493. style “Small Months”
  494. textcursor -para
  495.  
  496. style “Small Days”
  497. textcursor -para
  498. style “Small Months”
  499. textcursor -para
  500.  
  501. style “Small Days”
  502. textcursor -para
  503. style “Small Months”
  504. textcursor -para
  505.  
  506. style “Small Days”
  507. textcursor -para
  508. style “Small Months”
  509. textcursor -para
  510.  
  511. style “Small Days”
  512. textcursor -para
  513. style “Small Months”
  514. textcursor -para
  515.  
  516. ————————————————————————————————————————
  517. —place the previous/next month entries 
  518. pagemargins .5i 5.3i 9i 0.5i
  519. select -1i 0i
  520. resize bottom -5i 0 1
  521. —autoflow 1
  522. placenext
  523. place .5i 5.3i
  524.  
  525. ——————————————————————————————————————————————————
  526. —end of routine  — clean-up
  527. removestyle “temp”
  528. page 1
  529. autoflow 0 
  530. pagemargins 2.3i 0.5i 0.5i 0.5i
  531.